package com.xiguaji.tiktok.v1.tiktok.sys.repository;

import com.xiguaji.tiktok.v1.tiktok.sys.model.SysMenu;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface SysMenuRepository extends CrudRepository<SysMenu,Integer> {

    SysMenu findByUrl(String url);

    SysMenu findByUniqueKey(String key);

    SysMenu findByUrlLike(String url);

    List<SysMenu> findByParentId(int parentId);
}
